package com.liaoct.lct.util;

public class Util {

	public static boolean isNotNull(Object o) {
		if (null != o && !"".equals(o)) {
			return true;
		}
		return false;
	}
	
	public static String objectToString(Object o) {
		String res = "";
		if(o instanceof String) {
			if(isNotNull(o)) {
				res = o.toString();
			}
		} else {
			if(isNotNull(o)) {
				res += o;
			}
		}
		return res;
	}
}
